.number-box {
    width: 60px;
    height: 60px;
    background-color: #63b3ed;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border-radius: 10px;
    margin: 0 10px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.number-box.searching {
    background-color: #f99737;
    transform: scale(1.1);
}

.number-box.current-min {
    background-color: #e53e3e;
    animation: pulse 1s infinite;
}

.number-box.sorted {
    background-color: #48bb78;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* 搜索放大镜图标 */
.number-box.searching::before {
    content: "🔍";
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
}

/* 交换动画 */
.number-box.swap-right {
    animation: swapRight 1s ease;
}

.number-box.swap-left {
    animation: swapLeft 1s ease;
}

@keyframes swapRight {
    0% { transform: translateX(0); }
    25% { transform: translateX(20px) translateY(-20px); }
    75% { transform: translateX(70px) translateY(-20px); }
    100% { transform: translateX(70px); }
}

@keyframes swapLeft {
    0% { transform: translateX(0); }
    25% { transform: translateX(-20px) translateY(20px); }
    75% { transform: translateX(-70px) translateY(20px); }
    100% { transform: translateX(-70px); }
}

.visualization-container {
    background-color: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.numbers-container {
    min-height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 30px 0;
    margin: 20px 0;
    background-color: #f8fafc;
    border-radius: 10px;
} 